#pragma once
#include <cocos2d.h>
#include "SpriteAnimation.h"

USING_NS_CC;

class Effect : public CCNode
{
public:
	Effect(void);
	~Effect(void);

	virtual bool init();
	virtual void onEnter();
	virtual void onExit();

	void addSpriteAnimation(SpriteAnimation* animation);
	bool isDone();

	CREATE_FUNC(Effect);

	CC_SYNTHESIZE_RETAIN(CCArray*, _listAnimationFrame, AnimationFrames);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listParticle, Particles);
};

